package com.chinaisafe.module.user.request;

import com.chinaisafe.base.common.validated.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * RoleMenuReqVO
 * Description：
 *
 * @author tby
 * @date 2024/7/15 17:58
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(name = "RoleMenuReqVO", description = "保存角色与菜单的关系")
public class RoleMenuReqVO {
    @Schema(description = "角色_id")
    @NotNull(message = "角色id不能为空",groups = UpdateGroup.class)
    private Long sysRoleId;

    @Schema(description = "菜单集合")
    @NotNull(message = "菜单集合不能为空",groups = UpdateGroup.class)
    private List<Long> sysMenuIds;
}
